#ifndef CONVERSION_H
#define CONVERSION_H

#include "C.h"
#include "SqStack.h"
void Conversion(int m, int n){
	SqStack<int> S(5);
	int e;
	char c;
	if (m >= 0 && n >= 2 && n <= 16){
		while (m){
			S.Push(m%n);
			m /= n;
		}
		while (!S.StackEmpty()){
			S.Pop(e);
			if (e <= 9)
				cout << e;
			else{
				c = e + 55;
				cout << c;
			}
		}
		cout << endl;
	}
}

#endif